package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Address;
import com.itheima.pojo.Order;

import java.util.List;

public interface AddressService {
    PageResult findPage(QueryPageBean queryPageBean);

    void add(Address address);

    Address findById(Integer id);

    void edit(Address address);

    void delete(Integer id);

    List<Order> findOrderByAddressId(Integer id);

    Address findByName(String name);

    List<Address> findAll();

}
